Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add the request to error response for apple pay validate #201

Merged
merged 4 commits into from
Mar 22, 2022

Conversation

elizalucas
Copy link
Contributor

Additional PR for debugging the apple pay validate (to be removed once issue is resolved)

.then((a) => {
// return the json received from Apple Pay server unmodified
res.send(a.data)
})
.catch((a) => {
res.send({
message: a.message,
errorMessage: a.message,
request: requestData,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

does this change make sensitive data like keys/certificates available?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It only makes the merchant identifier, domain name, and display name available, all of which were previously hard coded into the file

.then((a) => {
// return the json received from Apple Pay server unmodified
res.send(a.data)
})
.catch((a) => {
res.send({
message: a.message,
errorMessage: a.message,
Copy link
Contributor

@antiv0 antiv0 Mar 22, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i d say send ALL (checksum of cert/key), applePayUrl, every possible detail and compare

if this is not due to domain verification revoked then it is down to SOMETHING being off, so better to verify all

antiv0
antiv0 previously approved these changes Mar 22, 2022
Copy link
Contributor

@antiv0 antiv0 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

you can send back a bit by a bit, and come back to have merged, wait for deployment... repeat until all is verified

OR immediately make a big return object and verify all fields (as this issue doesn't seem trivial, likely it will fail until you understand it entirely, which in this case is have all fields)

antiv0
antiv0 previously approved these changes Mar 22, 2022
@huaweigu huaweigu merged commit da2d1f7 into circlefin:master Mar 22, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants